Skip to content

events: use absolute URLs (constructed using base_url from the tenant) when sending notifications outside (e.g. via email) - #24877

Open
atereshkin wants to merge 5 commits into
goauthentik:mainfrom
atereshkin:notification-absolute-urls-2
Open

events: use absolute URLs (constructed using base_url from the tenant) when sending notifications outside (e.g. via email)#24877
atereshkin wants to merge 5 commits into
goauthentik:mainfrom
atereshkin:notification-absolute-urls-2

Conversation

@atereshkin

Copy link
Copy Markdown
Contributor

Details

What does this PR change?

This makes notifications containing a hyperlink use absolute URLs when they are going outside of the system (i.e. via email, Slack or webhook).

Why is this change needed?

We've added an ability to include a hyperlink in notifications earlier but it was useless for external notifications because those hyperlinks were relative URLs.

How was this tested?

Added a few new tests specifically for this + manually by triggering an access review notification.


Checklist

  • The project has been linted, built, and tested (make all)
  • The documentation has been updated and formatted (make docs)

…) when sending notifications outside (e.g. via email)
@atereshkin
atereshkin requested review from a team as code owners August 7, 2026 15:19
@netlify

netlify Bot commented Aug 7, 2026

Copy link
Copy Markdown

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit aa377f1
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6a79d8bfd5c0bc000818fd89
😎 Deploy Preview https://deploy-preview-24877--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 7, 2026

Copy link
Copy Markdown

Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit aa377f1
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6a79d8bf75978800080f0d0a
😎 Deploy Preview https://deploy-preview-24877--authentik-integrations.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 7, 2026

Copy link
Copy Markdown

Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit aa377f1
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a79d8bfb3ba690008dc6c2d
😎 Deploy Preview https://deploy-preview-24877--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@atereshkin atereshkin changed the title events: use absolute urls (constructed using base_url from the tenant) when sending notifications outside (e.g. via email) events: use absolute URLs (constructed using base_url from the tenant) when sending notifications outside (e.g. via email) Aug 7, 2026
@codecov

codecov Bot commented Aug 7, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.00990% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 91.26%. Comparing base (28a07c7) to head (aa377f1).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
authentik/events/models.py 91.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #24877      +/-   ##
==========================================
- Coverage   91.41%   91.26%   -0.16%     
==========================================
  Files        1146     1147       +1     
  Lines       71827    71926      +99     
  Branches     3875     3875              
==========================================
- Hits        65659    65640      -19     
- Misses       6133     6251     +118     
  Partials       35       35              
Flag Coverage Δ
conformance 34.81% <4.95%> (-0.05%) ⬇️
e2e 39.00% <4.95%> (-0.55%) ⬇️
integration 30.91% <4.95%> (-0.50%) ⬇️
rust 38.89% <ø> (ø)
unit 93.07% <99.00%> (+0.01%) ⬆️
unit-migrate 93.10% <99.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@rissson
rissson requested a review from emilburzo August 10, 2026 11:49
Comment thread authentik/events/models.py Outdated
Comment thread authentik/events/models.py Outdated
Comment thread authentik/tenants/utils.py Outdated
Comment thread authentik/tenants/utils.py Outdated
Comment thread website/docs/install-config/configuration/configuration.mdx
atereshkin and others added 4 commits August 10, 2026 15:19
Co-authored-by: Jens L. <jens@beryju.org>
Signed-off-by: Alexander Tereshkin <96586+atereshkin@users.noreply.github.com>
Co-authored-by: Jens L. <jens@beryju.org>
Signed-off-by: Alexander Tereshkin <96586+atereshkin@users.noreply.github.com>
@atereshkin
atereshkin requested a review from BeryJu August 10, 2026 13:57
@rissson rissson added area:backend backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8 labels Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:backend backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants